package cn.edu.zjut.repository;

import cn.edu.zjut.entity.ImageEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @description:
 * @author:ZhouDan
 * @date: 2020/8/10
 * @version: 1.0
 */
@Repository
public interface ImageRepository extends JpaRepository<ImageEntity,Long> {
    ImageEntity findById(Long id);
    ImageEntity findByName(String name);
    ImageEntity findByUserId(Long id);
}
